package com.ssy.lingxi.pay.api.fallback;

import com.ssy.lingxi.common.exception.BusinessException;
import com.ssy.lingxi.common.response.ResponseCode;
import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.pay.api.feign.ICcbPayFeign;
import com.ssy.lingxi.pay.api.model.vo.request.ccb.*;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

import javax.validation.Valid;

/**
 * @Description:
 * @Author: HuangJieZhou
 * @Date: 2021/12/22 9:57
 * @Version: 2.0.0
 **/
@Component
@Qualifier("ccbPayHystrix")
public class CcbPayHystrix implements ICcbPayFeign {
    @Override
    public Wrapper<String> b2bPay(@Valid CcbB2bPayVo ccbPayVo) {
        throw new BusinessException(ResponseCode.SERVICE_PAY_ERROR);
    }

    @Override
    public Wrapper<String> b2bPayStatusQuery(@Valid CcbB2bPayQueryVo ccbAccountQueryVo) {
        throw new BusinessException(ResponseCode.SERVICE_PAY_ERROR);
    }

    @Override
    public Wrapper<Boolean> b2bRefund(@Valid B2bRefundVO refundVO) {
        throw new BusinessException(ResponseCode.SERVICE_PAY_ERROR);
    }

    @Override
    public Wrapper<String> b2bRefundQuery(@Valid B2bRefundQueryVO refundVO) {
        throw new BusinessException(ResponseCode.SERVICE_PAY_ERROR);
    }

    @Override
    public Wrapper<String> digitalPay(@Valid CcbDigitalPayVo ccbDigitalPayVo) {
        throw new BusinessException(ResponseCode.SERVICE_PAY_ERROR);
    }

    @Override
    public Wrapper<Boolean> digitalRefund(@Valid DigitalRefundVO digitalRefundVO) {
        throw new BusinessException(ResponseCode.SERVICE_PAY_ERROR);
    }
}
